Optimal. Leaf size=109 \[ -\frac {c x}{d (b c-a d) \sqrt {c+d x^2}}+\frac {a^{3/2} \tan ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {a} \sqrt {c+d x^2}}\right )}{b (b c-a d)^{3/2}}+\frac {\tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{b d^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 109, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {481, 537, 223,
212, 385, 211} \begin {gather*} \frac {a^{3/2} \text {ArcTan}\left (\frac {x \sqrt {b c-a d}}{\sqrt {a} \sqrt {c+d x^2}}\right )}{b (b c-a d)^{3/2}}-\frac {c x}{d \sqrt {c+d x^2} (b c-a d)}+\frac {\tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{b d^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 212
Rule 223
Rule 385
Rule 481
Rule 537
Rubi steps
\begin {align*} \int \frac {x^4}{\left (a+b x^2\right ) \left (c+d x^2\right )^{3/2}} \, dx &=-\frac {c x}{d (b c-a d) \sqrt {c+d x^2}}+\frac {\int \frac {a c+(b c-a d) x^2}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{d (b c-a d)}\\ &=-\frac {c x}{d (b c-a d) \sqrt {c+d x^2}}+\frac {\int \frac {1}{\sqrt {c+d x^2}} \, dx}{b d}+\frac {a^2 \int \frac {1}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx}{b (b c-a d)}\\ &=-\frac {c x}{d (b c-a d) \sqrt {c+d x^2}}+\frac {\text {Subst}\left (\int \frac {1}{1-d x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{b d}+\frac {a^2 \text {Subst}\left (\int \frac {1}{a-(-b c+a d) x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{b (b c-a d)}\\ &=-\frac {c x}{d (b c-a d) \sqrt {c+d x^2}}+\frac {a^{3/2} \tan ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {a} \sqrt {c+d x^2}}\right )}{b (b c-a d)^{3/2}}+\frac {\tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{b d^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.35, size = 132, normalized size = 1.21 \begin {gather*} \frac {c x}{d (-b c+a d) \sqrt {c+d x^2}}-\frac {a^{3/2} \tan ^{-1}\left (\frac {a \sqrt {d}+b x \left (\sqrt {d} x-\sqrt {c+d x^2}\right )}{\sqrt {a} \sqrt {b c-a d}}\right )}{b (b c-a d)^{3/2}}-\frac {\log \left (-\sqrt {d} x+\sqrt {c+d x^2}\right )}{b d^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(803\) vs.
\(2(91)=182\).
time = 0.09, size = 804, normalized size = 7.38
method | result | size |
default | \(\frac {-\frac {x}{d \sqrt {d \,x^{2}+c}}+\frac {\ln \left (x \sqrt {d}+\sqrt {d \,x^{2}+c}\right )}{d^{\frac {3}{2}}}}{b}-\frac {a x}{b^{2} c \sqrt {d \,x^{2}+c}}+\frac {a^{2} \left (-\frac {b}{\left (a d -b c \right ) \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}+\frac {2 d \sqrt {-a b}\, \left (2 d \left (x -\frac {\sqrt {-a b}}{b}\right )+\frac {2 d \sqrt {-a b}}{b}\right )}{\left (a d -b c \right ) \left (-\frac {4 d \left (a d -b c \right )}{b}+\frac {4 d^{2} a}{b}\right ) \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}+\frac {b \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x -\frac {\sqrt {-a b}}{b}}\right )}{\left (a d -b c \right ) \sqrt {-\frac {a d -b c}{b}}}\right )}{2 b^{2} \sqrt {-a b}}-\frac {a^{2} \left (-\frac {b}{\left (a d -b c \right ) \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}-\frac {2 d \sqrt {-a b}\, \left (2 d \left (x +\frac {\sqrt {-a b}}{b}\right )-\frac {2 d \sqrt {-a b}}{b}\right )}{\left (a d -b c \right ) \left (-\frac {4 d \left (a d -b c \right )}{b}+\frac {4 d^{2} a}{b}\right ) \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}+\frac {b \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x +\frac {\sqrt {-a b}}{b}}\right )}{\left (a d -b c \right ) \sqrt {-\frac {a d -b c}{b}}}\right )}{2 b^{2} \sqrt {-a b}}\) | \(804\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 195 vs.
\(2 (91) = 182\).
time = 1.63, size = 977, normalized size = 8.96 \begin {gather*} \left [-\frac {4 \, \sqrt {d x^{2} + c} b c d x - 2 \, {\left (b c^{2} - a c d + {\left (b c d - a d^{2}\right )} x^{2}\right )} \sqrt {d} \log \left (-2 \, d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right ) + {\left (a d^{3} x^{2} + a c d^{2}\right )} \sqrt {-\frac {a}{b c - a d}} \log \left (\frac {{\left (b^{2} c^{2} - 8 \, a b c d + 8 \, a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} - 2 \, {\left (3 \, a b c^{2} - 4 \, a^{2} c d\right )} x^{2} - 4 \, {\left ({\left (b^{2} c^{2} - 3 \, a b c d + 2 \, a^{2} d^{2}\right )} x^{3} - {\left (a b c^{2} - a^{2} c d\right )} x\right )} \sqrt {d x^{2} + c} \sqrt {-\frac {a}{b c - a d}}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}\right )}{4 \, {\left (b^{2} c^{2} d^{2} - a b c d^{3} + {\left (b^{2} c d^{3} - a b d^{4}\right )} x^{2}\right )}}, -\frac {4 \, \sqrt {d x^{2} + c} b c d x + 4 \, {\left (b c^{2} - a c d + {\left (b c d - a d^{2}\right )} x^{2}\right )} \sqrt {-d} \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right ) + {\left (a d^{3} x^{2} + a c d^{2}\right )} \sqrt {-\frac {a}{b c - a d}} \log \left (\frac {{\left (b^{2} c^{2} - 8 \, a b c d + 8 \, a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} - 2 \, {\left (3 \, a b c^{2} - 4 \, a^{2} c d\right )} x^{2} - 4 \, {\left ({\left (b^{2} c^{2} - 3 \, a b c d + 2 \, a^{2} d^{2}\right )} x^{3} - {\left (a b c^{2} - a^{2} c d\right )} x\right )} \sqrt {d x^{2} + c} \sqrt {-\frac {a}{b c - a d}}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}\right )}{4 \, {\left (b^{2} c^{2} d^{2} - a b c d^{3} + {\left (b^{2} c d^{3} - a b d^{4}\right )} x^{2}\right )}}, -\frac {2 \, \sqrt {d x^{2} + c} b c d x + {\left (a d^{3} x^{2} + a c d^{2}\right )} \sqrt {\frac {a}{b c - a d}} \arctan \left (-\frac {{\left ({\left (b c - 2 \, a d\right )} x^{2} - a c\right )} \sqrt {d x^{2} + c} \sqrt {\frac {a}{b c - a d}}}{2 \, {\left (a d x^{3} + a c x\right )}}\right ) - {\left (b c^{2} - a c d + {\left (b c d - a d^{2}\right )} x^{2}\right )} \sqrt {d} \log \left (-2 \, d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right )}{2 \, {\left (b^{2} c^{2} d^{2} - a b c d^{3} + {\left (b^{2} c d^{3} - a b d^{4}\right )} x^{2}\right )}}, -\frac {2 \, \sqrt {d x^{2} + c} b c d x + 2 \, {\left (b c^{2} - a c d + {\left (b c d - a d^{2}\right )} x^{2}\right )} \sqrt {-d} \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right ) + {\left (a d^{3} x^{2} + a c d^{2}\right )} \sqrt {\frac {a}{b c - a d}} \arctan \left (-\frac {{\left ({\left (b c - 2 \, a d\right )} x^{2} - a c\right )} \sqrt {d x^{2} + c} \sqrt {\frac {a}{b c - a d}}}{2 \, {\left (a d x^{3} + a c x\right )}}\right )}{2 \, {\left (b^{2} c^{2} d^{2} - a b c d^{3} + {\left (b^{2} c d^{3} - a b d^{4}\right )} x^{2}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{4}}{\left (a + b x^{2}\right ) \left (c + d x^{2}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^4}{\left (b\,x^2+a\right )\,{\left (d\,x^2+c\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________